*Replication Instructions for

*War-Related Victimization and Social Distance Toward Others: Evidence Following Russia's 2022 Invasion of Ukraine

*Sam Whitt and Douglas Page

*Below are instructions for replicating all manuscript and online appendix tables and figures in STATA. There are multiple replication datasets and do files, which are noted for each table and figure. Please contact Sam Whitt (swhitt@highpoint.edu) for questions regarding data replication. 

*Note: You may need to install STATA packages for the cibar, catcibar, and iebaltab commands. Use findit with the command name to identify and download the appropriate packets to install. 

*Note: In addition, some graphs require additional formatting using filename.grec files with the graph play command. To format a graph, simply run the command to generate the graph in the do file in STATA, then open the "Graph Editor" in STATA and click on the GREEN "Play Recording" button, then select "Browse" to select the grec file from the folder "grec files for STATA graph formatting" among Replication files. The name of the grec file is indicated in the note below the graph command in the do file for the specific graph you wish to format. This should automatically format the graph, which you may then save to a location of your choosing.

*Manuscript Replication

*"Stata user generated commands to install for replication purposes"

*"cibar"

ssc install cibar, replace

*"iebaltab from ietoolkit"

ssc install ietoolkit, replace

*"catcibar"

net install catcibar, from("https://aarondwolf.github.io/catcibar") replace


*In Text Replication up to robustness checks

*Use "CC Ukraine July 2022 replication data.dta"

*Figure 1

*Figure 1 (use Data_OMN_Nov_2021_KIIS_ukr.dta and do file)

*Figure 2

*Figure 2 (use Data_OMN_Kiis_prepostwar.dta and do file)

*Table 2

*Use CC Ukraine July 2022 replication data.dta and do file

*Table 3

*Use CC Ukraine July 2022 replication data.dta and do file

*Table 4

*Use CC Ukraine July 2022 replication data.dta and do file

*Robustness Check – Contextualizing Identity

*The sample, 94% of which identified as Ukrainian, are not strongly affected by randomized variation in Ukrainian identity markers. 

tab nationality

*They feel very close to Ukrainians regardless of whether the Ukrainian identity is framed as "ethnic Ukrainian in Ukraine", "Ukrainian-speaker in Ukraine" "Ukrainian citizen of Ukrainian ethnic origin" or "citizen of Ukraine" (mean=9.3).

sum ethnicuk

*In contrast, for Russian identity, we find that framing matters. Respondents are most distant toward "citizens of Russia" (mean =1.48).

sum citizenru

*However, for people who identify as Russian within Ukraine, Figure 4 shows that respondents feel closest to people who identify as "Russian-speakers in Ukraine" (mean=6.5), followed by "Ukrainian citizens of Russian ethnic origin" (mean=5.4), and most distant toward people defined as "ethnic Russians in Ukraine" (mean=3.9).

sum ethnicru if identitytxt==2
sum ethnicru if identitytxt==3
sum ethnicru if identitytxt==1

*Figure 4

*Use "CC Ukraine Jan 2023 Figure 4 data.dta and enter code
*cibar closeall, over1(identitytxt) 

*Sample Demographics (July 2022)
*Manuscript Table 3 (Tobit Regression)
*Robustness Check: Binary Victimization Measurement
*Robustness Check – Ordinal Measure of Victimization
*Moderated Effects of Victimization Experience on Social Distance (OLS Regression)
*Moderated Effects of Victimization Experience on Social Distance (Interflex Estimates)
*Balance Tests on Victimization Treatment 
*Victimization Treatment Effects Sensitivity Analysis
*Intercorrelation among Victimization Items 
*Factor Analysis of Victimization-Related Items
*Correlates of Victimization (Logit Regression)

*Use CC Ukraine July 2022 replication data.dta

*Changes in Social Distance Over Time (July 2022-January 2023)

*Use "CC Ukraine 2022-2023 combined data.dta. See READ ME file for code"

*Sample Demographics (Follow-up January 3-11, 2023 survey)

sum i.identitytxt female age education i.nationality i.language i.occupation income urban_rural i.region4

*Balance Tests (Follow-up January 3-11, 2023 survey Identity Treatments)

iebaltab female age education russpeaker russian occupation income urban_rural region4, groupvar(identitytxt) savexlsx(identitybalance)

*Power Calculations 

*Effect sizes (Identity Priming)

power oneway, ngroups(3) n1(666) n2(677) n3(659) power(0.80 0.90 0.95 0.99)
esize twosample ethnicru if identitytxt~=3, by(identitytxt)
esize twosample ethnicru if identitytxt~=2, by(identitytxt)
esize twosample ethnicru if identitytxt~=1, by(identitytxt)
esize twosample ethnicuk if identitytxt~=3, by(identitytxt)
esize twosample ethnicuk if identitytxt~=2, by(identitytxt)
esize twosample ethnicuk if identitytxt~=1, by(identitytxt)

log close